//
//  VOH_SD_RecommendVC.m
//  VoiceOfHeart
//
//  Created by lanou3g on 16/8/15.
//  Copyright © 2016年 吉龙. All rights reserved.
//
//推荐电台View




#import "VOH_SD_RecommendVC.h"
#import "VOH_S_ViewController.h"
#import "VOHT_SD_DetailVC.h"
@interface VOH_SD_RecommendVC ()<UITableViewDataSource,UITableViewDelegate>

@property(nonatomic,strong) NSMutableArray *dataArray;

@end

@implementation VOH_SD_RecommendVC

- (void)viewDidLoad {
    [super viewDidLoad];
   self.navigationItem.title = @"推荐电台";
    self.view.backgroundColor =[UIColor grayColor];
    //创建一个tableView
    UITableView *tableView = [[UITableView alloc]initWithFrame:[UIScreen mainScreen].bounds style:(UITableViewStylePlain)];
    tableView.rowHeight =  0;
    
    //数据源
    tableView.rowHeight = 50;
    
    //代理
    tableView.delegate = self;
    
    [self.view addSubview:tableView];
    
}
-(NSMutableArray *)dataArray{
    if (!_dataArray) {
        self.dataArray = [[NSMutableArray alloc]initWithCapacity:20];
    }
    return _dataArray;
}



//解析plist
-(void)pareserData{

    
}

#pragma mark UITableViewDataSource
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return self.dataArray.count;
}



-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    //先注册
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    
    //取数据
    
    //将title展示到cell上
    //cell.textLabel.text =
    
    
    return cell;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    //设置点击详情页面
    VOHT_SD_DetailVC *radioDetail = [[VOHT_SD_DetailVC alloc]init];
    //属性传值
   //® radioDetail.n
    
    
    
}















@end
